﻿using System;
using System.Collections.Generic;

namespace CarterWechatServer.BizModel.Order
{
    /// <summary>
    /// 订单详情输出
    /// </summary>
    public class OrderDetailOutput
    {
        /// <summary>
        /// 订单状态
        /// </summary>
        public int OrderStatus { get; set; }

        /// <summary>
        /// 取餐号
        /// </summary>
        public int TakeNo { get; set; }

        /// <summary>
        /// 微信订单号
        /// </summary>
        public string WechatOrderCode { get; set; }

        /// <summary>
        /// 下单时间
        /// </summary>
        public DateTime OrderTime { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public int TotalCount { get; set; }

        /// <summary>
        /// 总金额
        /// </summary>
        public int TotalAmount { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        public string OrderCode { get; set; }

        public List<OrderDetailInfo> OrderInfo { get; set; }
    }

    /// <summary>
    /// 订单信息
    /// 
    /// </summary>
    public class OrderDetailInfo
    {
        /// <summary>
        /// 菜品名称
        /// </summary>
        public string DishName { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public int Count { get; set; }

        /// <summary>
        /// 小计
        /// </summary>
        public int Amount { get; set; }

        /// <summary>
        /// 菜品图片
        /// </summary>
        public string ImageUrl { get; set; }
    }
}
